class MateMaskType{

    /**
     * mainnet
     */
    public static MAIN_NET:string = "1";

    /**
     * deprecated Morden test network
     */
    public static MORDE_NET:string = "2";

    /**
     * ropsten test network
     */
    public static ROPSTEN_NET:string = "3";

    /**
     * Rinkeby test network
     */
    public static RINKEBY_NET:string = "4";

    /**
     * Kovan test network
     */
    public static KOVAN_NET:string = "42";

    private static NET_STR_OBJ:Object = {
        "1":"Main Net",
        "2":"Morde Net",
        "3":"Ropsten Net",
        "4":"Rinkeby Net",
        "42":"Kovan Net"
    }


    /**
     * 获取当前线路名字
     */
    public static getNowNetName():string{
        return MateMaskType.getNetName(Web3Manager.nowNet);
    }

    /**
     * 根据线路id获取线路名字
     */
    public static getNetName(netId:string):string{
        var nowNetStr:string = MateMaskType.NET_STR_OBJ[netId];
        return nowNetStr == null ? "Unknown Net" : nowNetStr;
    }
}